home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 15165 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  2.1 KB

  1. Path: earth.superlink.net!usenet
  2. From: "Michael J. Weiss" <mjw@pobox.com>
  3. Newsgroups: comp.lang.tcl,comp.unix.programmer,comp.unix.questions,comp.unix.shell,comp.lang.awk,comp.lang.c,comp.lang.perl.misc,comp.programming,comp.software-eng
  4. Subject: Appropriate Tools and Approach For Kill Application
  5. Date: Wed, 17 Apr 1996 12:56:08 -0400
  6. Organization: SuperNet Inc. (908) 828-8988
  7. Message-ID: <317522A8.69B4@pobox.com>
  8. NNTP-Posting-Host: sb11.superlink.net
  9. Mime-Version: 1.0
  10. Content-Type: text/plain; charset=us-ascii
  11. Content-Transfer-Encoding: 7bit
  12. X-Mailer: Mozilla 2.0 (WinNT; I)
  13. CC: mjw@pobox.com
  14.  
  15. I am interested in writing a fancy program to kill processes and could use
  16. some advice on appropriate tools, languages, and approaches.
  17.  
  18. I would like the program to function as follows:
  19.  
  20. There will exist a command line switch to correspond to each process
  21. characterstic. A process characteristic will most likely be each of the
  22. fields displayed in a full process list (ps -ef on many systems.) Using
  23. these switches, a user will be able to specify one or more characteristics
  24. with the ability to use regular expressions.  Also, where appropriate, he
  25. or she may include processes to be killed by using equalities/
  26. inequalities.
  27.  
  28.  
  29. i.e.
  30.  
  31. kill -n x*
  32.  
  33. would kill xterm, xrn, xmosaic, etc.
  34.  
  35.  
  36. kill -n x* -t >=5h2m
  37.  
  38. would kill all processes beginning with lowercase x and which have been
  39. running at least than five hours and two minutes.
  40.  
  41. These examples are provided to give a basic idea--I haven't worked out the
  42. syntax yet.
  43.  
  44. Lastly, I would like the user to be able to specify criteria for EXCLUDING
  45. processes based on values for these same characteristics.
  46.  
  47.  
  48. Can you please help with the following questions:
  49.  
  50. 1) What tools or languages would be best to use?  C, Tcl, scripting langs,
  51. LEX & YACC, etc.
  52.  
  53. 2) What are some good strategies and their pros and cons for implementing
  54. this functionality in different software forms i.e. script, program,
  55. combination, etc.
  56.  
  57. 3) Are there any guidelines or tips for designing the syntax to jive with
  58. standard practice?
  59.  
  60.  
  61. Thanks so much for your help.
  62.  
  63.  
  64. Michael Weiss
  65.